Skip to content

Adjust no_auth test expectation to address semver hazards failure #4211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

ysaito1001
Copy link
Contributor

Motivation and Context

This PR is a prerequisite for #4203.

Details

PR4203 has updated some of the AuthSchemeId string values, which causes the no_auth test to fail in the semver hazards check. This happens because the inner string value for NO_AUTH_SCHEME_ID has been modified from no_auth to noAuth.

To resolve this, this PR updates the test expectation so that it no longer depends on raw string values. Once this PR is merged and released from aws-sdk-rust, PR4203 should pass the semver hazards check successfully.

Also the test has been moved to no_auth.rs since it is not specific to S3 Express; it was originally placed in express.rs because the issue was first discovered while investigating S3 Express behavior.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ysaito1001 ysaito1001 requested a review from a team as a code owner July 15, 2025 17:34
@ysaito1001 ysaito1001 mentioned this pull request Jul 15, 2025
2 tasks
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@ysaito1001 ysaito1001 merged commit e2bfd35 into main Jul 15, 2025
45 checks passed
@ysaito1001 ysaito1001 deleted the ysaito/adjust-no-auth-test branch July 15, 2025 18:16
ysaito1001 added a commit that referenced this pull request Jul 17, 2025
~**semver-hazards check failure will be resolved when #4211 is released
from `aws-sdk-rust`**~

## Description
Add support for auth scheme preference, which allows customers to
re-prioritize the order of auth schemes originally determined by the
auth scheme resolver. See [the
changelog](https://github.com/smithy-lang/smithy-rs/blob/2d483a0880c30683858329fc8411e9f9282de633/.changelog/1752160009.md)
where the auth scheme preference can be configured.

Note: The preference list is merely a hint rather than a strict
override. Any auth schemes not included in the originally resolved auth
schemes will be ignored, and won't be an error.

~To support the implementation, a utility method has been added to
`NowOrLater` to map an inner future.~

## Testing
Those called out in the feature spec:
-
[auth_scheme_preference_should_take_the_highest_priority](https://github.com/smithy-lang/smithy-rs/pull/4203/files#diff-b45485e1d1dd937e149c9c703156aa1a7f71b2bbbd5dddb29ffba385b65c50b0R12)
for `Alternative Auth Resolution`
-
[test_resolve_identity](https://github.com/smithy-lang/smithy-rs/pull/4203/files#diff-db7260e3be202c63463123101814c7bf23ef47796bf23a14d67f567285039d46R891)
to verify `Resolving Auth and Credentials`
- [auth scheme
preference](https://github.com/smithy-lang/smithy-rs/pull/4203/files#diff-e63831c17293fd55b608a406f472155f8809239f3c3afba20bcd77bdc8da2ea3R140)
to verify `Manual auth schemes configuration`
- [test for parsing auth scheme preference from environmental
configuration](https://github.com/smithy-lang/smithy-rs/pull/4203/files#diff-d9b0e8d5e74b3e0542908745494b34c1784153ed4e566fe1ce581f8605e801eaR99)

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] For changes to the smithy-rs codegen or runtime crates, I have
created a changelog entry Markdown file in the `.changelog` directory,
specifying "client," "server," or both in the `applies_to` key.
- [x] For changes to the AWS SDK, generated SDK code, or SDK runtime
crates, I have created a changelog entry Markdown file in the
`.changelog` directory, specifying "aws-sdk-rust" in the `applies_to`
key.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants